package com.wayne.exceptions;

import lombok.Data;

/**
 * 校验异常
 */
@Data
public class CheckException extends RuntimeException {
    /**
     * 出错的字段名称
     */
    private String feildName;
    /**
     * 出错的字段值
     */
    private String feildValue;

    public CheckException() {
        super();
    }

    public CheckException(String message) {
        super(message);
    }

    public CheckException(String message, Throwable cause) {
        super(message, cause);
    }

    public CheckException(Throwable cause) {
        super(cause);
    }

    protected CheckException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public CheckException(String feildName, String feildValue) {
        super();
        this.feildName = feildName;
        this.feildValue = feildValue;
    }
}
